package chixing.day20.proxy;

public enum EnumDemo {
    SPRING,
    SUMMER,
    AUTUMN,
    WINTER;

    public static void main(String[] args) {
        //遍历输出枚举值
        for (EnumDemo e :EnumDemo.values()) {
            System.out.println(e);
        }
        //用switch来判断枚举值
        EnumDemo summer = EnumDemo.SUMMER;
        switch (summer){
            case SPRING -> System.out.println("春天");
            case SUMMER -> System.out.println("夏天");
            case AUTUMN -> System.out.println("秋天");
            case WINTER -> System.out.println("冬天");
        }
    }



}
